<?xml version="1.0" encoding="utf-8"?>
<Content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:blueonionsoftware-com:bloget:runtime:data">
  <text>Most of the reporting unit tests are workingâ€¦ People are working on the ones that donâ€™t (CapLauncher, DataModel, Reporting I/F)

 

The next time you update the Reporting solution from Clearcase, you will see 2 new Solution Items, Report_Debug.recipe and Report_Release.recipe. These are recipe files for all the currently functioning unit tests in Reporting. I STRONGLY suggest that you run all the unit tests when changing report code and before changes are checked in.

 

Also, if you add any unit test, make sure to add the assembly to both recipe files. Also, talk to Greg Tighe to learn how to add the unit test to the nightly build unit tests.

 

To run the unit tests:

&lt;ol&gt;
&lt;li&gt;Start up csUnitRunner from the start menu &lt;/li&gt;
&lt;li&gt;Click on File/Recipe/Open â€“ open \Report\ReportingUnitTests\&lt;whichever one you want, debug/release&gt; 
&lt;li&gt;Run it by clicking on the green arrow, or F5. &lt;/li&gt;
&lt;li&gt;Fix any problems â€“ note it is NOT AN ACCEPTABLE FIX TO COMMENT OUT THE TEST THAT FAILS!!! &lt;/li&gt;
&lt;li&gt;Note, you can also double click on the recipe file from windows explorer. &lt;/li&gt;
&lt;/whichever&gt;&lt;/li&gt;&lt;/ol&gt;

To make it easer to run, ad csUnit to your VS Tools:

&lt;ol&gt;
&lt;li&gt;In VS click on Tools/External Tools, click on add and add csUnitRunner.

&lt;img src="http://aabmag23a/devnotes/wp-content/unittest1.gif" alt="Screen shot of adding csunit" /&gt;

&lt;/li&gt;&lt;li&gt;Now you can click on the recipe file in the solution explorer and select tools/csUnit. If you want to add a button to a menu, remember which item it is in the menu if you want to add the command as a button to a toolbar, because sometimes VS is brain dead. 

&lt;/li&gt;&lt;li&gt;If you are really lazy, you can add a button to a toolbar. Click on the little down arrow for the toolbar you want to add it to (I picked the build toolbar), select Add or Remove Buttons/Commands/Tools. Scroll down under commands to external command N, (N is the number from step (2). Select the command and drag it to the toolbar.

&lt;img src="http://aabmag23a/devnotes/wp-content/unittest2.gif" alt="Screen shot of adding csunit" /&gt;

&lt;/li&gt;&lt;li&gt;Note, to remove a button, bring up the customize menu as described in step (3) and drag the button off the toolbar and release. 
 
&lt;/li&gt;&lt;/ol&gt;</text>
  <last_update>2007-10-04T00:52:31.8090806Z</last_update>
  <source_title />
  <source_link />
  <comments />
  <references />
  <attachments />
</Content>